package com.hualan.dao.impl;

import com.hualan.dao.CourierStationAddDao;
import com.hualan.utils.DruidUtil;

public class CourierStationAddDaoImpl implements CourierStationAddDao {
    // 新增驿站
    @Override
    public int addCourierStation(String courierStationAddress, String courierStationCity, String courierStationCommunityId, String courierStationDistrict, String courierStationImage, String courierStationName, String courierStationProvince) {


        String sql = "insert into panghu_courier_station (courier_station_address, courier_station_city, courier_station_community_id, courier_station_district, courier_station_name, courier_station_province) values (?, ?, ?, ?, ?, ?)";

        System.out.println("dao层的name：" + courierStationName);
        int row = DruidUtil.update(sql, courierStationAddress, courierStationCity, courierStationCommunityId, courierStationDistrict,  courierStationName, courierStationProvince);

        return row;
    }
}
